<?php
namespace Home\Controller;
use Think\Controller;
class DianzanController extends Controller{
	public function adddianzan(){
		$data['uid'] = I("get.uid")?I("get.uid"):'';
		$data['mid'] = I("get.mid")?I("get.mid"):'';
		foreach ($data as $v){
			if(!$v){
				$this->ajaxReturn(false);
			}
		}
		$diananModel = D('dianzan');
		
		$ret = $diananModel->jiazan($data);
		if($ret){
			$this->ajaxReturn($ret);
		}else{
			$this->ajaxReturn($ret);
		}
	}
}
?>